/**
 * 
 */
package fr.utbm.gi.vi51.slizers.pw.environment;

/**
 * Enum representing a relative position.
 *
 * @author Tarik Belabbas
 *
 */
public enum RelativePosition
{
	LEFT( -1, 0 ),
	RIGHT( +1, 0 ),
	ABOVE( 0, +1 ),
	BELOW( 0, -1 ),
	ABOVE_LEFT( -1, +1 ),
	ABOVE_RIGHT( +1, +1 );

	/**
	 * The x-coordinate difference.
	 */
	public final int	dx;
	
	/**
	 * The y-coordinate difference.
	 */
	public final int	dy;

	/**
	 * Parameterized constructor.
	 * 
	 * @param x the x-coordinate difference.
	 * @param y the y-coordinate difference.
	 */
	RelativePosition( int _x, int _y )
	{
		this.dx = _x;
		this.dy = _y;
	}
}
